package com.atzzy.ysmall.ysmall_mapper;


import com.atzzy.ysmall.ysmall_beans.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Author JAVAZeng
 * @Date 2022/2/22 14:39
 * @Version 1.0
 */
@Mapper
@Repository
public interface UserMapper {
    //登录操作
    Users userLoginName(String username);

    Users userLoginPhone(String phone);

    Users userLoginPassword(String username);

    Users userLoginEmail(String userEmail);

    //注册操作
    Boolean userRegister(Users users);

    Users selectHasUser(String username);

    //检测操作
    Users userSelectPhone(String userMobile);

    //重置密码
    Boolean updateUserPwd(@Param("username") String username, @Param("password") String password);
}
